Automattic\WCShipping\LabelPurchase\LabelPurchaseService A

Total Complexity 57
Dependencies 11
Dependents 7
Total lines 604
Lines of code 310
Logical lines of code 145
Comment lines 191
Methods 14
Properties 6

Methods 14

Method Rating Maintainability Complexity Lines of code
purchase_labels()
A
33 10 110
prepare_packages_for_purchase()
A
50 13 28
get_labels_meta_from_response()
A
39 9 68
refund_label()
S
55 5 19
get_shipments()
S
62 3 12
ensure_order_has_shipments()
S
61 3 12
get_labels()
S
57 2 18
update_user_meta()
S
66 3 8
store_selected_meta()
S
63 3 10
update_order_label()
S
71 2 6
__construct()
S
67 1 8
get_status()
S
80 1 3
get_shipments_destinations()
S
75 1 4
get_shipments_origins()
S
75 1 4